package priv.haha;

import java.util.Calendar;
import java.util.Date;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

import priv.work.Cat;

@Configuration
@ComponentScan
public class MyConfig {
	
	@Bean
	public Date date() {
		Date date = new Date();
		Calendar instance = Calendar.getInstance();
		instance.set(Calendar.YEAR, 1949);
		instance.set(Calendar.MONTH, 9);
		instance.set(Calendar.DATE, 1);
		return date;
	}

}
